//
// Created by yunlang on 2021/12/15.
//

#ifndef TREETYPE_FILE_H
#define TREETYPE_FILE_H
#include "Tree.h"
#include <unordered_map>
#include <map>
#include <vector>
class File
{
private:
    map<string,unsigned int> forest;
    vector<unsigned int>years;
public:
    File();
    ~File();
    unsigned int getForestNum();
    unsigned int getTreesNum(string &filename);
    void insertTree(string &filename);
    void insertYear(string year);
    void getYear();
    void getRate();
};
#endif //TREETYPE_FILE_H
